package com.yuandian.api.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yuandian.api.management.validate.InsertFlag;
import com.yuandian.api.management.validate.UpdateFlag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 营业厅配置表-实体
 * @author zfsn
 * @date 2023-3-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "营业厅配置表", description = "")
@TableName("conf_business_hall")
public class ConfBusinessHall extends BasePage<ConfBusinessHall> {

	/**
	 * 主键，唯一标识数据
	 */
	@NotNull(message = "id不能为空", groups = UpdateFlag.class)
	@ApiModelProperty(value = "主键", notes = "主键，唯一标识数据")
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 所属区域编码
	 */
	@ApiModelProperty(value = "所属区域编码", notes = "所属区域编码")
	@NotNull(message = "所属区域编码不能为空", groups = InsertFlag.class)
	private String areaCode;

	/**
	 * 所属区域编码
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "所属父区域编码", notes = "所属父区域编码")
	private String parentAreaCode;

	/**
	 * 营业厅编号
	 */
	@ApiModelProperty(value = "营业厅编号", notes = "营业厅编号")
	@NotNull(message = "营业厅编号不能为空", groups = InsertFlag.class)
	private String num;

	/**
	 * 营业厅名称
	 */
	@ApiModelProperty(value = "营业厅名称", notes = "营业厅名称")
	@NotNull(message = "营业厅名称不能为空", groups = InsertFlag.class)
	private String name;

	/**
	 * 显示顺序
	 */
	@JsonIgnore
	@ApiModelProperty(value = "显示顺序", notes = "显示顺序")
	private Integer sequence;

	/**
	 * 创建人
	 */
	@JsonIgnore
	@ApiModelProperty(value = "创建人", notes = "创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@JsonIgnore
	@ApiModelProperty(value = "创建时间", notes = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新人
	 */
	@JsonIgnore
	@ApiModelProperty(value = "更新人", notes = "更新人")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@JsonIgnore
	@ApiModelProperty(value = "更新时间", notes = "更新时间")
	private LocalDateTime updateTime;

	/**
	 * 是否逻辑删除，0：否、1：是
	 */
	@JsonIgnore
	@ApiModelProperty(value = "是否逻辑删除", notes = "是否逻辑删除，0：否、1：是")
	private Integer isDel;

	/**
	 * 备注
	 */
	@JsonIgnore
	@ApiModelProperty(value = "备注", notes = "备注")
	private String remarks;

	/**
	 * 区域名称
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "区域名称", notes = "区域名称")
	private String fullRegionName;
}
